#include<iostream.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/wait.h>
int main ( ) { int number = 5; int pid; pid = fork(); if(pid == 0){ number++; cout<<number<<endl; } else { wait(NULL); cout<<number<<endl; } }